<?php 
	
namespace app\admin\validate;
//导入Validate类
use think\Validate;

class Template extends Validate{
	protected $rule=[
		'name'=>'require|unique:template',
		'url'=>'require'
	];

	protected $message=[
		'name.require'=>'名称不能为空',
		'name.unique'=>'名称重复',
		'url.require'=>'请选择一个附件'
	];
} 

